﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_WorkPlanList.aspx.cs" Inherits="SaleSystem.Other.frm_WorkPlanList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>转账记录</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <ext:PageManager runat="server" ID="PageManager1" />
    <ext:Toolbar runat="server" ID="toolbar1"  >
        <Items>
    <ext:Button runat="server" ID="bnSearch" Text="查询" Type="Submit" Icon="Reload" OnClick="bnSearch_Click"></ext:Button>
            <ext:Button runat="server" ID="bnNew" Text="新增" Icon="Add"  ></ext:Button>

        </Items>    
    </ext:Toolbar>
     <ext:Form runat="server" ID="SimpleForm1" EnableBackgroundColor="true" ShowHeader="false" BodyPadding="10px" ShowBorder="false" AutoWidth="true" >
                <Rows>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" ID="tb_WPlan_Title" Label="标题" Width="200px"></ext:TextBox>
                          <ext:DropDownList runat="server" ID="ddl_WPlan_Man" Label="经办人" Width="200px" DataValueField="SUser_Id" DataTextField="SUser_Name" TabIndex="7"></ext:DropDownList>                            
                        </Items>
                    </ext:FormRow> 
            <ext:FormRow>
                <Items>
                    <ext:DatePicker runat="server" ID="dp_WPlan_StartTime1" Label="开始日期>=" Width="200px" TabIndex="5"></ext:DatePicker>
                    <ext:DatePicker runat="server" ID="dp_WPlan_StartTime2" Label="开始日期<=" Width="200px" TabIndex="6"></ext:DatePicker>
                </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                        <ext:DropDownList runat="server" ID="ddl_WPlan_Enable"  Label="是否提醒" Width="200px" TabIndex="8">
                        <ext:ListItem Text="-未选择-" Value="-1" Selected="true" />
                        <ext:ListItem Text="不提醒" Value="0" />
                        <ext:ListItem Text="提醒" Value="1"  />
                    </ext:DropDownList>    
                                        <ext:DropDownList runat="server" ID="ddl_WPlan_State"  Label="是否结束" Width="200px" TabIndex="8">
                        <ext:ListItem Text="-未选择-" Value="-1" Selected="true" />
                        <ext:ListItem Text="未结束" Value="0" />
                        <ext:ListItem Text="已结束" Value="1"  />
                    </ext:DropDownList>    
                        </Items>
                    </ext:FormRow>
                </Rows>

    </ext:Form>
    <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="转账记录列表"   
            IsDatabasePaging="true" AutoHeight="true" AutoWidth="true"
            DataKeyNames="WPlan_Id,WPlan_Title" EnableRowNumber="true"  
            onrowcommand="gv_List_RowCommand" AllowPaging="true" 
            onpageindexchange="gv_List_PageIndexChange" 
            onrowdatabound="gv_List_RowDataBound" 
            onprerowdatabound="gv_List_PreRowDataBound">
    <Columns>
        <ext:BoundField ColumnID="WPlan_Title" DataField="WPlan_Title" DataTooltipField="WPlan_Title" HeaderText="标题" Width="100px" />
        <ext:BoundField ColumnID="SUser_Name" DataField="SUser_Name" DataTooltipField="SUser_Name" HeaderText="经办人" Width="100px" />
        
               <ext:TemplateField HeaderText="开始时间" Width="100px">
            <ItemTemplate>
                    <%# DateTime.Parse(DataBinder.Eval(Container.DataItem, "WPlan_StartTime").ToString()).ToString("yyyy-MM-dd")%>               
            </ItemTemplate>
        </ext:TemplateField> 
                       <ext:TemplateField HeaderText="结束时间" Width="100px">
            <ItemTemplate>
                    <%# DateTime.Parse(DataBinder.Eval(Container.DataItem, "WPlan_EndTime").ToString()).ToString("yyyy-MM-dd")%>               
            </ItemTemplate>
        </ext:TemplateField>   
         <ext:CheckBoxField DataTooltipField="WPlan_Enable" Width="60px" RenderAsStaticField="true"  DataField="WPlan_Enable" HeaderText="是否提醒" />
        
        <ext:BoundField ColumnID="WPlan_WarningInfo" DataField="WPlan_WarningInfo" DataTooltipField="WPlan_WarningInfo" HeaderText="提醒时间" Width="150px"/>    
         <ext:CheckBoxField DataTooltipField="WPlan_State" Width="60px" RenderAsStaticField="true"  DataField="WPlan_State" HeaderText="是否结束" />
        
        <ext:LinkButtonField ColumnID="edit" CommandName="edit"  Text="编辑" HeaderText="编辑" Width="60px" />
        <ext:LinkButtonField ColumnID="delete" CommandName="Delete" CommandArgument="BData_Id" ConfirmIcon="Question" ConfirmText="确认删除此信息？" Text="删除" HeaderText="删除" Width="60px" />

    </Columns>
    </ext:Grid>
    </div>
    <ext:Window runat="server" ID="win_Content" Popup="false" EnableIFrame="true"   EnableConfirmOnClose="true" Title="新增账户" IFrameUrl="about:blank" Target="Parent" IsModal="true" Width="500px" Height="390px"></ext:Window>
    </form> 
</body>
</html>
